package com.zl.task.util.resp;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @author YinlinGeng
 */
@ToString
@Getter
@Setter
public class RespResult<T> {
    public int code;
    private String msg;
    private T data;
    private long respTime;
    private Integer count;

    public RespResult() {
    }

    public RespResult(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public RespResult(int code, String msg, T data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

    public RespResult(int code, String msg, T data, Integer count) {
        this.code = code;
        this.msg = msg;
        this.data = data;
        this.count = count;
    }
}